<template>
  <!-- 文档资料 -->
  <view class="index_cont">
    <view class="my_index_cont">
      <view class="my_title">
        {{ itemObj.title }}
      </view>

      <view class="my_already_num">
        {{ itemObj.createTime }}
      </view>
    </view>
    <uni-badge
      v-if="itemObj.status == 0 && !itemObj.noShowNoRead"
      :is-dot="true"
      text="0"
    >
    </uni-badge>
  </view>
</template>

<script>
import { getDateFn } from "../../../utils/fun.js";
export default {
  props: {
    itemObj: {
      type: Object,
      default: {},
    },
  },
  data() {
    return {
      imgSrc: "../../static/dangjian/no-pic.png",
      title: "",
    };
  },
  methods: {
    searchList() {
      this.$emit("searchList", this.title);
    },
  },
};
</script>

<style lang="scss" scoped>
@import "/static/dangjian.scss";
.search {
  margin: 0 auto;
  width: 100%;
  height: 100rpx;
  line-height: 80rpx;
  border-radius: 8rpx;
  padding-left: 24rpx;
  box-sizing: border-box;
  position: relative;
  background: #fff;
}

.index_cont {
  width: 700rpx !important;
  overflow: hidden;
  height: 100rpx;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  background: #fff;
  margin-bottom: 20rpx;

  &:last-child {
    border: none !important;
  }

  .uni-badge--x {
    position: absolute;
    right: 0;
    top: 0;
  }
}

.my_already_num {
  flex: 5;
  text-align: right;
  padding-right: 20rpx;
}
</style>
